import java.util.Scanner;

public class getMax {

    public static int max2(int a,int b){

        int max = a >= b ? a : b;

        return max;
    }

    public static int max3(int a,int b,int c){

        int max = max2(max2(a,b),c);

        return max;
    }

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        System.out.println("请输入你要比较的三个数字：");
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        System.out.println(a +"、" + b + "和"+ c + "三个数字中最大的数字为" + max3(a,b,c));
    }
}
